package org.jeecg.modules.assets.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.assets.entity.AssetsItem;
import org.jeecg.modules.assets.service.IAssetsItemService;
import org.jeecg.modules.assets.service.impl.WechatUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Arrays;

/**
* @Description: 资产明细
* @Author: jeecg-boot
* @Date:   2023-12-12
* @Version: V1.0
*/
@Slf4j
@Api(tags="资产测试")
@RestController
@RequestMapping("/assets/test")
public class TestController extends JeecgController<AssetsItem, IAssetsItemService> {
    @Autowired
    private WechatUtils wechatUtils;


   @AutoLog(value = "")
   @ApiOperation(value="资产测试-微信消息发送", notes="资产测试-微信消息发送")
   @GetMapping(value = "/sendWechatMessage")
   public Result<?> queryPageList(String userName,String billNo) {
       wechatUtils.sendWechatMessage(userName,billNo,"2023-12-12");
       return Result.OK("测试成功");
   }



}
